﻿@{
    ViewBag.Title = "Login";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<style>
    div.loginBackground
    {
        width:1000px;
        height:350px;
        background:url(/Content/images/logon.jpg) no-repeat;
        position:relative;
        margin:auto;
    }
    div.loginForm
    {
        position:absolute;
        left:455px;
        top:73px;
        /*background-color:#FF9;*/
        width:497px;
        height:237px;
        /*margin:auto;*/
        padding:10px;
        vertical-align:middle;
    }
</style>

<div class="loginBackground">
    <div class="loginForm">
        @*<h2 style="text-align:center">登陆</h2>
        用户名<input type="text" value="admin" /><br />
        密码<input type="password" value="admin" /><br />
        验证码<input type="text" /><img src="@Url.Content("~/Content/images/validate.png")" /><br />
        <input type="checkbox" />自动登录
        <br />
        <br />
        <input type="button" id="btnLogin" value="登陆" />
        <input type="button" id="btnRegister" value="注册" />
        @Html.ActionLink("重设密码", "ResetPassword")*@
        <table style="margin:auto">
            <tr>
                <th colspan="4">
                    <h2 style="text-align:center">登陆</h2>
                </th>
            </tr>
            <tr>
                <th>用户名</th>
                <td><input type="text" value="admin" /></td>
                <td><input type="checkbox" />自动登录</td>
                <td rowspan="2">
                    <input type="button" id="btnLogin" value="登陆" /><br />
                    @*<input type="button" id="btnRegister" value="注册" />*@
                </td>
            </tr>
            <tr>
                <th>密码</th>
                <td><input type="password" value="admin" /></td>
                <td></td>
            </tr>
            <tr>
                <th>验证码</th>
                <td><input type="text" /></td>
                <td>
                    <img src="@Url.Content("~/Content/images/validate.png")" />
                </td>
                <td>@Html.ActionLink("重设密码", "ResetPassword")</td>
            </tr>
        </table>
    </div>
</div>
<script type="text/javascript">
    $("#btnLogin").click(function () {
        window.location = "@Url.Action("Index")";
    });
</script>